package com.ruoyi.merchant;

import com.ruoyi.common.security.annotation.EnableCustomConfig;
import com.ruoyi.common.security.annotation.EnableRyFeignClients;
import com.ruoyi.common.swagger.annotation.EnableCustomSwagger2;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

@SpringBootApplication
@EnableRyFeignClients
@EnableCustomConfig
@EnableCustomSwagger2
@MapperScan("com.ruoyi.merchant.mapper")
public class RuoYiMerchantApplication {
    public static void main(String[] args) {
        SpringApplication.run(RuoYiMerchantApplication.class);
    }

    @Bean
    public BCryptPasswordEncoder initBCrypt(){
        return new BCryptPasswordEncoder();
    }

}
